package com.thudojsc.canvasengine.util;

import java.util.List;

public class CollectionsHelper {
	
	public static<T> void querry(final List<T> pList, final IMatcher<T> pMatcher, 
			final List<T> pResult) {
		final int list_size = pList.size();
		
		for (int i = 0; i < list_size; i++) {
			final T item = pList.get(i);
			
			pResult.add(item);
		}
	}
	
	public interface IMatcher<E> {
		public boolean isMatch(final E object);
	}
}
